package FightLandlords;

public class Card implements Comparable<Card>{
    public String color;
    public String number;

    public Card() {
    }

    public Card(String color, String number) {
        this.color = color;
        this.number = number;
    }

    @Override
    public String toString() {
        return "[" + color +" "+ number + "]";
    }

    @Override
    public int compareTo(Card o) {
        return this.number.charAt(0) - o.number.charAt(0);
    }
}
